package com.ruoyi.web.controller.app;

import com.ruoyi.common.core.page.ResponseResult;
import com.ruoyi.system.domain.Customer;
import com.ruoyi.system.service.CustomerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Api(tags = "用户端:客服相关接口")
@RestController
@RequestMapping("public/customer")
public class CustomerController extends AppController {
    @Resource
    private CustomerService customerService;


    @ApiOperation(value = "客服列表")
    @GetMapping("list")
    public ResponseResult<Customer> list() {
        List<Customer> list = customerService.findList(new Customer());
        return this.setSuccessResult(list);
    }

}
